package org.servletTest;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ServletTest extends HttpServlet {
	public void init(ServletConfig config) throws ServletException {
		System.out.println(">>>初始化Servlet。。。");
	}

	protected void service(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		System.out.println("Hello! Servlet");
	}

	public ServletConfig getServletConfig() {
		return null;
	}

	public void destroy() {
		System.out.println(">>>销毁Servlet。。。");
	}
}